<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
*/
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
cfc('core')->checklogin('jy_jdpm/member.index/');
$return=array();
$return['channel'] = pdo_getall('jy_jdpm_goods_group',array('uniacid'=>$_SESSION['uniacid'],'pid' => 0),'','','paixu asc');
set_html('title','分享-'.$this->plugin_setting('basic')['title']);
if($_RQ['op']=='main'){
	$return['url']=custom_url('core/member.register/fromuser='.$_SESSION['uid'],true);
	exi($return);
}
if($_RQ['op']=='list'){
	$list=pdo_getall('core_members',array('uniacid'=>$_SESSION['uniacid'],'fromuser'=>$_SESSION['uid']));
	$return['list']=$list;
	exi($return);
}